<extend name="Public:common" />
<!--/sidebar-->
<block name="content">
     <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="/Admin">首页</a><span class="crumb-step">&gt;</span><a class="crumb-name" href="__URL__/User">用户管理</a><span class="crumb-step">&gt;</span><span>新增</span></div>
        </div>
        <div class="result-wrap">
            <div class="result-content">
                <form action="__URL__/insert" method="post" id="myform" onsubmit="return Validator.ValidateForm(this,3);">
                    <table class="insert-tab" width="100%">
                        <tbody>
                            <tr>
                                <th><i class="require-red">*</i>电话：</th>
                                <td>
                                    <input class="common-text required" id="title" required name="mobile" size="50" value="" maxlength="11" type="text" datatype="m" errormsg="输入正确的手机号码" nullmsg="请填写正确的11位手机号码" sucmsg="手机号码输入正确" placeholder="请输入手机号码">
                                </td>
                            </tr>
                            <tr>
                                <th><i class="require-red">*</i>密码：</th>
                                <td><input class="common-text" name="pwd" size="50" required value="" type="password" errormsg="密码输入错误" nullmsg="密码为空，请重新输入" sucmsg="密码输入正确" placeholder="请输入6-20位数字或字母组合的密码" datatype="/^[a-zA-Z0-9]{6,20}$/"></td>
                            </tr>
                             <tr>
                                <th><i class="require-red">*</i>重复密码：</th>
                                <td><input class="common-text" name="apwd" size="50" required value="" type="password" recheck="pwd" datatype="pw2-1"  errormsg="2次密码输入不一致" nullmsg="密码为空，请重新输入" sucmsg="2次密码输入正确" placeholder="请再次输入密码"></td>
                            </tr>                           
                             <tr>
                                <th>邀请码：</th>
                                <td><input class="common-text" name="yqm" size="50"  value="" type="text"></td>
                            </tr>                           
                              <tr>
                                <th>交易密码：</th>
                                <td><input class="common-text" name="jypwd" size="50"  value="" type="password" errormsg="密码输入错误" nullmsg="密码为空，请重新输入" sucmsg="密码输入正确" placeholder="请输入6-20位数字或字母组合的密码" datatype="/^[a-zA-Z0-9]{6,20}$/"></td>
                            </tr>

                             <tr>
                                <th>重复交易密码：</th>
                                <td><input class="common-text" name="ajypwd" size="50"  value="" recheck="jypwd" datatype="pw2-1"  errormsg="2次密码输入不一致" nullmsg="密码为空，请重新输入" sucmsg="2次密码输入正确" placeholder="请再次输入密码" type="password"></td>
                            </tr>
                            <tr>
                                <th></th>
                                <td>
                                    <input class="btn btn-primary btn6 mr10" value="提交" type="submit">
                                    <input class="btn btn6" onclick="history.go(-1)" value="返回" type="button">
                                </td>
                            </tr>
                        </tbody></table>
                </form>
            </div>
        </div>
    </div>


        <script type="text/javascript">
    $(function(){
        //$(".registerform").Validform();  //就这一行代码！;
        
        var demo=$("#myform").Validform({
            tiptype:3,
          datatype:{
                // 验证密码的正则
                "pw2-1":/^[a-zA-Z0-9]{6,20}$/
            },
            postonce:true,
            showAllError:true,
            
        });

    });
    </script>
    </block>

    